package com.weidong.mybbs.mapper;

import com.weidong.mybbs.entity.SysUser;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface SysUserMapper {


   int checkLoginNameUnique(String name);

   SysUser findByName(String loginName);

   SysUser findById(int userId);

   /**
    * 更新用户
    * @param sysUser
    * @return
    */
   int updateById(SysUser sysUser);
}
